Fix an issue with capitalization and Chrome headers being lowercase. Also put a 'var' where one was needed. This should fix everybody's issue of Clockwork not working in the latest Chrome.