Excluding external javascripts from validation