[javascript] How does inline Javascript (in HTML) work?