removed logging javascript code