fixes js syntax in md