Created the 'buildLinks' function in the Index.js object