js changes for css implementation