CSS and JS for long document