Hi,
The script shown in the screenshot is in the view "product | show_block_img".
You can use a static variable in order to include the script only once. I think I will do this modification for the next release.
More than that, you can use the browser debugger in order to stop the script execution when an error occurred.
Some browsers allow to "pretty print" the javascript code source so it is easier to see the error line when it's not all displayed in a single one.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.