javascript is stupid sometimes