change js calling method