move js code to github