Removed jQuery and switched to vanilla javascript