fixed wrong body definition in element enhancer, added javascript error reporting for the test app