Restore mootols code

There is another PR #4517 by @Fedik that converts all mootools code to jquery