add javascript to prevent flash of header image