Created a button to generate a schedule

Modified index to include generate php now calls the javascript
prepareAlgorithm() function directly on button click.