prettify connection numbers

Added a javascript function to prettify (put commas inside) big numbers.