pass image url to js