Reduce loops and filters done.
Working on relative image check.
Shorter.
Should be document.location.