Sometimes javascript is stupid...