Updated JS

Updated javascript