Fixed JS and added result page