refs #74 Uncaught ReferenceError: result is not defined