Fixes in javascript integration v. 1.6

Also, adds tracking of users activity in an ejsapp instance!