Properly setup client JS settings