Update lock.js