Fixed JSHint errors
Fixed issue when finding global analytics variable