setup RequireJS and class inheritance structure on client-side javascript