Update cow2.core.js