Product spinner refactoring using jQuery