Refactored and reorganised the <head>, moved JS into <body>.