Removed addEvent and removeEvent functions from autorotate plugin