Refactor getJSON

Create a new function getJSONWithOpts for getting JSON with options
Make getJSON = getJSONWithOpts string [] (i.e. no options)