Added logic to create setup.js file and added unit tests for this logic