simple js quit app