Migrate layout to browserify (part of issue #60)
Finish migration to browserify

Fixes #60