Fixed JSHint errors
Fixed issue when finding global analytics variable
Merge pull request #17 from walterscarborough/master

Fixed JSHint errors + fixed global analytics variable issue