JS-Store: minor fix at UI logic