Update Editmode.php

Now checks for the inclusion of jquery before the end of the head tag.