Change the index of the doors in JavaScript side to start from 1.