update javascript method name