js run method added