Hi Kamran,
You cannot use JavaScript to execute shell script because it's client programming language, and only IE support it.
and spent some times to develop a web protocol for ImageGlass:Â imageglass:<path>.
To integrate ImageGlass to your website, you should
- Download the latest ImageGlass Moon
- Launch ImageGlass, open Settings > File Associations
- Click on Set as Default Photo Viewer button to register the extensions that ImageGlass supports and web protocol
- In your website, create the following element: