A boilerplate for javascript plugins