[javascript] How to add a “readonly” attribute to an <input>?