Functional JS Tools