js and css code moved up the hierarchy