refactoring, moving js to different folders