Divide main.ts into polymer elements & popup.ts
Removed unused files