Moved script initialization to task2.js