initial commit for js code.