redid the js, should work now.