UI design needs to drive required JS functionality