updated preferences js