renaming is-global to global.js, enhancing readme, ensuring code passes tests