fix for using Quintus game engine inside of AngularJS framework.