Fix for initial load and display, and formatting in jQuery.