updates all code blocks to use js syntax