Adding method to construct HTML snippet that will call logger in JS...