javascript is really dumb