<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<div class="container">
<div class="row">
<h2>Javascript Auto Slugify</h2>
<form class="form">
<div class="form-group">
<input type="text" class="form-control title" placeholder="Type anything...">
</div>
<div class="form-group">
<input type="text" class="form-control slug">
</div>
</form>
</div>
</div>