Small library of pure JS functions.