added diagonal cost
switched parameters
Merge branch 'master' of https://github.com/DanielSt/javascript-astar
use options parameter instead of parameter list.  Issue #12 and Issue #16