Change json to javascript code block