Turns your javascript code into JSON and stores it.