Made minor javascript function-name changes