script moved to head tag from body tag