fix jshint errors on convert.js