change from browserify to capsule-js