changed .bind and .click to .on for v1.7+