Keep selected author state in js