Fix #93 - "fail" event is never fired when json/css fail to load