added global validation js module