Forgot to include the javascript extensions to the String object.