improvements to Crud js