Crud without objects in javascript