Added glyphicons
Refactored JS