light refactoring for better test coverage
updating javascripts path