Refactored $.get with $.getScript ~RuBy MaGIc
Added respond_to in products controller index so controller responds to both html and js requests