FIX. javascript errors in parent pages