goog.asserts.fail changed to throw new Error (because of compiler)