Consolidated left and right side click event in to its own function: selectProduct().