why do some lines of javascript code have ";" at the end.