Forum Moderators: open
I would first suggest validating your HTML [validator.w3.org] at the W3C. If your syntax is correct, adding a script element to the <head> section should not affect the appearance of the page (unless, of course, the script itself is designed to change the page layout.)