head tag closed and javascript moved to head for trial