Javascript code to show registration breakdown on the page.