Shamelessly adapted Sublime Text 2 browserify package