Removed jQuery dependency. Improved performance