Fix for html5, changed Engine.init to Engine.ready and doesn't throw anymore