Changed .click event to utilize .on instead.