“Wimpy Kid 2” beats the competition at the box office