add utils component
require utils file in view
remove unnecessary file from view
transform xhr to singleton class
adjust main.js to utilize new util.js component