Updated javascript function parameters.