Updated JavaScript file to support Bootstrap 3.