remove js and css for preview