fix window and root in all plus.js