pointed to javascript method