Fix javascript for redactor v 10.