JavaScript to demonstrate diff format usage..