adding client-side config module, and making all functions strict mode