Fix for #7 #16
Modified how the page refresh after AJAX response
Signed-off-by: Shivam Dixit <shivamd001@gmail.com>