load resouces and eval inline script on pjax