Update pk-core.js