Color change and js attr update