js allows user to close the set-repeats panel