removed js debug code