Added in the 'use strict' statement at the top. Which pointed out some quote consistency and a missing semi colon or two. Just cleaning as I go through.