Fix JS for markdown definition