fixed js validation issues after using jshint
used lowercase name for functions
fixed pep8 issues
added upgrade step to register with portal_js