fixed firefox 17+ compatibility issue with MooTools