not giving up just yet, fiddled with javascript some more