Added HAR generation as inline script

As promised yesterday, this one goes open source ;)
As suggested I added a comment explaining this behaviour.