Code clean up
1. Removed unused variables, unused imports
2. Removed commented codes
3. Changed double quotes to single quotes for javascript codes
4. Removed empty code blocks
5. Add isEmpty checking

Issue: GCP-9732

Reviewer: Mae Isabelle Turiana