javascript and style tasks