A simple javascript model library