adding js file and updated readme