Revert "moved functions into utils.js updated function calls"

This reverts commit b4ebdb25e32c61726ecf56898ed8a114f2726391.