fixed typo, moved script into head