Fix jasmine console warnings
Merge pull request #867 from lonelyplanet/if-fix-jasmine-warnings

Fix jasmine console warnings