A JS elevator simulation