JS code for closing an issue