removed debug code from js scripts