Detect when enter key is pressed to add list / Simplify document.getElementById