[misc] Fixed broken selector
[cleanup] Move JS functionality into a clean widget