added new jquery functions for couch