Update coolock.js