change preformated json to javascript because looks better.