trying to fix the f&@(@)( home page and arms page javascript

This is broken. Got to figure out where and why.