tweaks

* added method for selecting tabs
* added javascript mode
* confirmation for new file
* keypress registering fixed