Fixed syntax error in the functional version and cleaned up the index
page from testing the function version.