attempting to fix cross-browser js show/hide issue with animation