trying to figure out where the javascript needs to go