add jsdoc for popup
add trivial tests for popup
add restart test for application