Fiddling with JS to make things work

Stopping because there's some football on or something.