changed item_path to item_url, javascript