fixing img src references in js