cleanup on code detail page js