Update common-functions.js

Made a couple simple edits.