mod.js: Add chmod.
Add load handlers for property tabs
Perms tab onclose will chmod