text: (function() {
    var app = angular.module('listant', []);
  
    app.controller('ListantController', function() {
      this.products = gems;
    });
  
    app.controller('TabController', function() {
      this.tab = 1;
  
      this.selectTab = function(setTab) {
        this.tab = setTab;
      };
  
      this.isSelected = function(checkTab) {
        return this.tab === checkTab;
      };
  
    });
  
    app.controller('ReviewController', function(){
      this.review = {};
  
      this.addReview = function(product) {
        product.reviews.push(this.review);
  
        //Clear the Review
        this.review = {};
      };
  
    });
  
    app.controller('GalleryController', function(){
      this.current = 0;
  
      this.setCurrent = function(setCurrent) {
        this.current = setCurrent || 0;
      };
    });
  
    var gems = [{
      name: 'Azurite',
      description: "Some gems have hidden qualities beyond their luster, beyond their shine... Azurite is one of those gems.",
      shine: 8,
      price: 110.50,
      rarity: 7,
      color: '#CCC',
      faces: 14,
      images: [ ],
      reviews: [{
        stars: 1,
        body: "This gem is WAY too expensive for its rarity value.",
        author: "turtleguyy@example.org",
        createdOn: 1397490980837
      }, {
        stars: 1,
        body: "BBW: High Shine != High Quality.",
        author: "LouisW407@example.org",
        createdOn: 1397490980837
      }, {
        stars: 1,
        body: "Don't waste your rubles!",
        author: "nat@example.org",
        createdOn: 1397490980837
      }],
      canPurchase: true
    }, {
      name: 'Bloodstone',
      description: "Origin of the Bloodstone is unknown, hence its low value. It has a very high shine and 12 sides, however.",
      shine: 9,
      price: 22.90,
      rarity: 6,
      color: '#EEE',
      faces: 12,
      images: [
        "images/Sapphire_Gem.jpg",
        "images/Wrigley.jpg",
      ],
      reviews: [{
        stars: 1,
        body: "This gem is WAY too expensive for its rarity value.",
        author: "turtleguyy@example.org",
        createdOn: 1397490980837
      }, {
        stars: 1,
        body: "BBW: High Shine != High Quality.",
        author: "LouisW407@example.org",
        createdOn: 1397490980837
      }, {
        stars: 1,
        body: "Don't waste your rubles!",
        author: "nat@example.org",
        createdOn: 1397490980837
      }],
      canPurchase: true
    }, {
      name: 'Zircon',
      description: "Zircon is our most coveted and sought after gem. You will pay much to be the proud owner of this gorgeous and high shine gem.",
      shine: 70,
      price: 1100,
      rarity: 2,
      color: '#000',
      faces: 6,
      images: [
        "images/Sapphire_Gem.jpg"
      ],
      reviews: [],
      canPurchase: true
    }];
  })();
  