build a social network from scratch javascript php mysql coupon