make PlainIB.js pass jshint + code style changes