Added increment to counter in loop for Mainview population and also removed jQuery-2.1.0