Adding Code Blocks as javaScript