code: function eat(expected) {
              if (s[i] !== expected) {
                  throw new Error("bad JSURL syntax: expected " + expected + ", got " + (s && s[i]));
              }
  
              i++;
          }
docs: Eats the specified character, and throws an exception if another character
  was found
  
  @param {string} expected Expected string