hodgepodge of random utils or other js bits