initial browserify rewrite
minor demo fixes
demo markup change