Added try-catch for JSON parsing errors
Changed return value to false for errors
Merge pull request #234 from tagawa/js-fixes

Added try-catch for JSON parsing errors