use different selector rather than hardcoding url
make sure all existing exts are converted to lowercase