Refactored code

Refactored javascript logic to allow multiple selection points to
animate besides eachother (disabled by default, can be enabled with a
new settings parameter => allowSimultaneousAnimations:Boolean)