Fix codeviewer.rjs for 1.8.7

A quick fix for your pull request