amd-ified for browserify, js dependencies are now external packages