move ide.js into models directory