modularize inquiry.js