It looks like your development environment is parsing the object literal as a statement block (which may be the right thing to do, as curly braces are not always considered as object literals by the Javascript parser itself).
If it does so, then the colon characters after the string literals are indeed syntax errors.