Fire rips through 2 Jersey Shore homes