Move JS into main.js.
Only serve static content if asked.

Fixes #6
Minor fix to x scale.