Removed jQuery and simplified the class addition.