removed some loose js debug code