index.html checks for empty/undefined string