updated the JS