Use multiple events binding with one .bind() call.

Also some code cleanup.