autofocus attribute moved from js to element attribute