Added class in javascript