When is this js executed? I think it is better to figure out and document that. For example, if we set non-zero wait, does this js run before or after window.onload?