Removed use of id when selecting textbox, and shortened function expression to make it more concise