made a fix to install.js to fix broken install code