Removed unnecessary code
Server now listen to json post from backend