Add old IE support

 * use "es5-shim" and "json3" for old IE support
 * better error handling, so that the SyntaxError is properly caught in all the browsers I've tested so far