Fixing issues with RequireJS optimizing.
Adding build index.