Added code to enable JavaScript to be built using Browserify.