Added "use struct" to each js file.
Fixed screen clear - it wasn't clearing the whole screen after a resize.
Made the trail effect resolution independent.