avoid error with karma >= 0.8.4
using jsdom v0.8.1
v0.5.3