random utility js helpers on top of head