Add javascript type to code block