View secret details functionality
Some jslint suggested improvements