added JS console log