updated for javascript and auto package install