jshint crap, adding events and an optimization

Yea shouldn’t have done that whole loops and all the rest of that BS…
not cool… didn’t think hard enough… oh yea I am starting event shit too