Code cleanup.
Added global Display function.
Added custom icon javascript