Removing MooTools dependencies from media/media folder JS files

Under GSoC MooTools to jQuery project, this PR removes the MooTools dependencies in several JS files inside the media/media folder

Test Criteria:
*Test media manager from administrator section where it should work as it is before, after the update
*Test image upload popup manager which should also work as it is before, after adding the update