If Aer Lingus are offering a good price it would be worth considering.
The US pre-clearance at Dublin saves a lot of time on arrival and the connecting time does allow for the transfer.
From Glasgow you also have United to Newark and Delta to JFK but I suspect their fares will be higher.