Javascript URI parser.