Writing Solid Web Front-end Code