1. cleanup error code
1. applied HttpResponseStatsus
1. moved position of req.endHandler()
1. applied jquery
1. applied error handling
1. applied error handling
1. applied html5