you have a few options.
you can use a front motor in the rear, which won't have a place for your chain.
you can do the above, but modify the rightside cover to hold a freewheel. there's a few threads about this if you're interested in the idea.
you can look for folding-bike motors. some of them will have narrower axle shoulder spacing, possibly as little as 110mm (maybe 120mm). http://ebikes.ca had some at one time.
or you can use the front hubmotor in the front, and leave your rear wheel alone.
or you can use a middrive, or a friction drive, dependign on your needs and the bike design.
if this is like most of the beach cruisers i've seen, it doesn't have a significant front brake (or has none at all), and has a coaster-brake hub in the rear. if that's true, then if you use a rear hubmotor, you lose all braking ability. there are a number of ways to add a good front brake, and to add rear brakes, depending on fork and frame design, if this is the case. but it complicates your build and increases cost.