code changes according to PR line notes
code changes according to PR line notes

ericblade/quaggaJS,ericblade/quaggaJS,serratus/quaggaJS,ericblade/quaggaJS,ericblade/quaggaJS,serratus/quaggaJS,JauernigIT/quaggaJS,JauernigIT/quaggaJS,serratus/quaggaJS,JauernigIT/quaggaJS,serratus/quaggaJS