Updated .click events to be .on('click',) in order to work properly in all browsers.