[javascript] How to advance to the next form input when the current input has a value?