more js tweaks on example page