1005001 email fix

* adds a fix for 1005001
* adds basic test harness for javascript utility tests using qunit

r?