Added bootstrap and refactored js files