js utility