JS functionality added