(Fix) Adjust server to res.end() intead of res.send()