Moving PHP back into PHP file; moving <script> to head