Mixing shared ajax functionality into a model