add_asm_type.js: Fix jshint errors/warnings