Had to move jquery below bootstrap in application js file.