fix json parsing for browsers that don't auto parse