The only goal Danis allowed was a backhander by Frans Nielsen that gave the Islanders a 1-0 lead at 6:23 of the first period.
Murphy tied the score at 2:38 of the second period and Rolston put the Devils on top with a slap-shot goal on a power play with 6:20 to play in the second.
Patrik Elias, New Jersey's all-time leading scorer, returned to the Devils' lineup for the first time since having off-season surgery on his groin.
Exploding whale video goes viral on Internet
Jordana Brewster on Paul Walker: 'He was an enormous presence in my life'