Removed JQuery dependency.

Refactored the code in pure Javascript removing the dependency.