Bug 987487 - [Gaia] [Build] Refactoring webapp-optimize.js and unit tests
Merge pull request #19185 from cctuan/987487

Bug 987487 - [Gaia] [Build] Refactoring webapp-optimize.js and unit tests