Fixing js issue whe locked by someone else