Refactoring Joke Panel JS Controllers