Inlining the JS

Pull site JS and lib JS into the index page to minimise HTTP requests.