javascript show log fix