Removed all the DOM manipulations and created a utils file so npx eslint is happy. Also changed the tests to test the new version of the code. ref: N25B-189
got 50.72% code coverage. Not sure if it is feasible to mock import behaviour ref: N25B-189