javascript crud operation (1)