Update common-functions.js

Updated the addEvent method and added the removeEvent method.