adds stuff
adds most of js code for setting up json