Updated Crud/Rest examples

Fixed small sissues in Javascript events