modified JS printout