adding npm install to script, plus file perm changes