Feature#1546 Replace js sprintf library with a better one

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>