Fixed crashes and added a new option for simpler extraction

Fixed crashes due to JSON.parse().
Also added a new option flag (options.singlePage) which allows the library to parse the first object in the response, so that the library works as intended and you can directly access the title, text and other properties.