Update common-functions.js

added a couple functions.