index.js: fixed missing typeof