Updated script to use ES5 strict mode and not use MooTools Class