oh JavaScript, you so crazy