Time to sleep. Totally forgot how much of a pain JavaScript it.