refactored index.html by creating separate js and css files