- mouse capturing added
 - made jshint happy