add common.js
there are functions for checkrule