js helper lib