Update foundation.interchange.js

Use regex literal to remove need for regex var
New regex tests for an image extension at the end of path