Codeblock javascript