added javascript to code block