I added a param because otherwise the view doesn't know that it should render the Bootstrap dropdown. This will also add Bootstrap dropdowns on pages that haven't been ported to Bootstrap. Is there any easy way to distinguish Bootstrap from non-Bootstrap pages in javascript?