improving page support and execution of scripts from ajax