Converted to function literal

I've converted the bulk of the JoyShtick code into a function literal.
This allows instances of it to be easily created, and keeps its
variables appropriately private.
Stopped using screen in favor of window.inner properties
Added in a TODO

too sleepy to do now. But didn't want to forget it later
Merge pull request #1 from matthewolsson/functionLiteral

Function literal