Create script.js

While loops are used when one doesn't know how many times one will have to execute.