Style detail pages, correct local scripts