Module pattern and RequireJS