a tiny URL parsing library for javascript