styles for miles. Proper Bootstrap 3 update. Some JS improvements