Center the frame contents with javascript and add some fx