Implemented preferences to set the UI thread script timeout.

I created a preference to change the UI thread timout.
Please merge and create a new release.
Thanks!