Added javascript on settings page. 
Moved js imports to bottom before body.