adding functional.js
moar random hacking