fix javascript function name