Create common.js

Support functions and classes