URI Parser (and soon to be URI encoder) in Javascript.