Working on JavaScript code for one-page correction functionality, using fake data