Add window operation js.