Sometimes I think Javascript just isn't that good...