Update mqtranslate_wphacks.php

Moved parts of the code to the external js file mqtranslate.js