JS for some custom components