inverts javascript code in a markdown file