Cleaning Up

Removed unused functions.js and debug code