loading javascript properly

TODO : Maybe re-include browserify if needed