v2

Removed jQuery dependency.
Algorithm now follows defines guidelines.