boilerplate code for client-side applications