Added functional.js