Add the lock version value in javascript instead of the database