Added script in head instead of end of body