fixing js on detail page