fix for Javascript in page loaded by Ajax