put utility functions in their own file. completed refactor of USBookmarklet.js