Added JS functionality to the interface