figuring out where to put the javascript objects