Update env.js

if 'optionData' is not a string (assume it is a javascript object), then make a JSON out of it