JavaScript URI parser.