Annotated for closure compiler
Closure compiler formula.js