better file handling
added term.js