You can buy this project and download/modify it how often you want.
[#ftl] [#if !(request.getHeader('x-requested-with')??) && !Parameters['x-requested-with']??] [#-- --]