Made some more changes to the javascript.  This should work I am hoping.