fix ajax upload if you’re viewing the 2nd, 3rd, or 4th image in the gallery
Merge pull request #24 from datnt/rails4

fix ajax upload if you’re viewing the 2nd, 3rd, or 4th image