Fixed the layout
And placed all init code in the jQuery startup function.