Add detect-global-properties.js
Improve detect-global-properties.js