Fix some crazy nonsense

suddenly the game just...broke? because I was trying to access
document.width... that said I shouldn't've been doing that anyways,
that's what I made the width variable for in the first place...