Switched to jQuery's show() and hide()