trying to make ChatJS work with RequireJS