Move javascript from dataverse_template to separate .js file.  These functions rebind the bootstrap components.