Create lock.js