added javascript and Shell function