Fixes dismissing javascript