add code for print log in separateJSFromHTMFile