Number formatting code organization

JS code for number formatting moved to separate js file.
js file and test html moved to separate folder.