Function literal

Converted bulk of JoyShtick to a function constructor. Instances can easily be made, size of the application is now also given to the constructor and during initialization the resultant canvases are appropriately sized.