refactored upurl.js so that we can do qUnit tests
added qUnit test suite.