Added events like key and mouse, and fixed function parameter stuff

and fixed a couple of things in js library!!
Merge branch 'master' of https://github.com/kevin-roark/arthur