moving around .js files to make it more usable as a submodule