Elevator functionality in Javascript