JS functionality.