0. Import script
<script src="path/to/js/toprogress.min.js"></script>
1. Set options (The values below are default value)
var options = {
id: 'top-progress-bar',
color: '#F44336',
height: '2px',
duration: 0.2
}
2. Get the progress bar instance
var progressBar = new ToProgress(options);
3. Play it!
progressBar.increase(20);