Move the JS from index.php to a separate file
Changed the texbox creation to a loop