Adding javascript logging script