adding fp.js

Adding new file fp.js that covers functional programming samples