Client-side torrc generator in javascript and jquery