refactored status.js and added some final stylistic touches