Update case.js

#1011