Refactor and Add files for user Jasmine with javascript