js: chain .on stuff for more canonical js style