javascript basics - event listener for submit button