update javascript shell script
now including javascript for tests