added basics for a js based lock possibility