Update ioc.js

Added some logging