Nuggets beat Nets to win 18th straight at home