Apple js events after main content loads.