JS updates

Updated javascript