javascript and styling changes