changed JS module settings object into non-global var