debug with js