Fixed javascript code block