add javascript(local) support