Add global javascript and move some functions around. Link in header. Few CSS things, that can be made look better by someone else later