Update and rename curry.js to functools.js