got server response back into js
got server response back into js
removed unnessary function params