fixed include jquery not to run if inner
merged checking for js errors and for captcha in trigger event script
added js errors and captcha check to open page script