fix path in js for code block