JavaScript syntax on code blocks