Adding functionality to each version using jQuery