javascript to format number and date in format (excel format style), could be used in web pages and node.js