switched to JSON to achieve IE support