Refactoring JSFileIO, add some methods and refine some code.
Add DLog macro, and refactoring some code based on this new macro.