fixed broken references to functional.js