JS Library for creating lazy functions