Add window scripting layer