extract grade proccess
use grade for url way
extrac http.get
consistent function name style
move error handling to callback
add back checkhtmlfile exported function