Update sherpa.js

Fixed error introduced in line 245