Update core.js

allow to use function as colWidths