JWs didn't invent the idea that masturbation would/could make you gay. Other fundamentalist groups believe this too. A reference to this was made in the HBO show about the polygamist Mormon faith, "Big Love" starring Bill Paxton.
The father of a closeted gay man on the show berates him and says, "You finally masturbated yourself into a Sodomite!"