Switched to more reliable method of detecting MooTools