new js debug messages code