Update hashresHelper.js - error when replaces references to the given fi...

...les with the hashed ones

There was an issue when i had 2 images with names like "es.png" and "states.png" (same ending). "es.png" name matches for both images if "states.png" name isn't already replaced by the hashed name.