adjusted the javascript. still not sure why this didn't work the other day but works now.