fixed bug in javascript w/ show/hide button