created new js file called crud. moved getrowdata logic into crud js module.