Adding code with index.html working