Fixed missing JS files and added PM purge button

Fixes #1587 due to missing JS imports