Create popup.js

need to solve duplicate images when search