A JS set of utility functions