Prepare json as js