this is a fix for using this script with ember.js