https://github.com/derek-watson/jsUri