parse a JSON file rather than running eval on javascript