Further refactorings
Log JSON.parse exception to console