fixed jquery.on syntax bug, addresses #346