feat(overlay): update variables and function definitions for polymer