JavaScript inoremap for while