Added JS to header, removed nested tags from footer