JS updated. Second action working