Developer to donate £10k to JDRF for each flat sold