updating js file and readme