added missing require.js example and fixed index