updated .js file