You should have <!-- --> surrounding the Javascript code, just inside the actual script tags. Don't think it'll make a difference, just means older browsers won't get crap text lol
It seems to work outside the <h1> tags (delete the tags). This goes back to my first post about block level elements
EDIT: In fact, change the <h1> tags (only the ones surrounding those two objects) to <p> tags, change the DOCTYPE and it'll comply to Strict then