settings javascript changed sending hex to string