Intergrate javascript with shell