started js refactoring by using simplemanagement namespace and jslint