Complex sentence: Scripts are programs written for a special run-time environment; the main type of run-time environment that JavaScript programs are written for are browsers.
Split into simpler sentences: Scripts are programs written for a special run-time environment. The main type of run-time environment that JavaScript programs are written for are browsers.