added enter key and slight refactoring
added end key
added home key
refactoring
adding jshint to grunt
propagation error fix