add javascript to code blocks