script for changing DOM styles