Removed extra modification of title element. All tests passing