adding some JS console output to verify that JS is all working as expected