Don't assume the server reponds with valid JSON.
Happy New Year.
Using new JSHint 1.0 comment style.
Fixed a few JSHint 1.0 RC3 warnings.