backend for jquery nestable plugin