refactored calculatePOIIndex
Added Jasmine Specs. Added basic ones for calculatePOIIndex
Extracting methods and adding more jasmine specs