Testing javascript plugins