detail page scripts