Helpful functions when building web apps