post-reject js cleanup