updated readme and added js file