close tab from javascript no longer works