[javascript] Selecting all text in HTML text input when clicked