js changes for appending classes and 1st page css changes alongwith media queries