Generator app index works with require