JS helper functions kit