Remove extra newline
Move function body to same line as .on() call