More JS utils.