Fixee issue in firefox

Changed it from appending to the body, to the head.