move js files to src (refactoring)