jQuery-ified the main.js. Also aligned tamaVars to test better readability. Feedback appreciated. The game still works in the Firefox OS Simulator, so hopefully nothing broke :)