popup tidy up

Just a small tidy up

- Fixed indentation
- Linted JS
- Tidied HTML