adds jquery to page
parses JSON into objects, starts to sort out global variables