Complete refactor of installation script.

- Removed dependency on config.js and json parse (js)