A Javscript elevator simulation