We should use jQuery to listen to events so we don't have to care about browsers