JS updated to submission