removed debug code from footer
fixed bug in javascript