Add extra logging to khan-exercises.js

Test Plan: Load an exercise in lcoal mode to ensure nothing catestrophic happened

Auditors: alpert