Refactoring: renamed js-functions to start with lower case letter.