Fix the frequency slider event listeners, close #373.

The .on().change() syntax doesn't make any sense to me, and the rangeinput plugin doesn't fire proper events.  It will, however, call the change function after a change.
Trimming up a few newlines.