add definitions for interact.js