Format json as javascript.