Update js/functions.js

add support for pressing tab key while inside the editor.
Merge pull request #4 from rmclain/master

Tab fix