Update JSSort.js

- Add a global log function and accept the debug parameter during object creation.
- Change all local 'console.log' to call the global function
- Update Merge sort - fix processing of the number 0
- Update Insertion sort - fix processing of the number 0