testing outputs with js