initial commit of js/ file and package.json