Simple web worker wrapper function for using JSON.parse asynchronously