ended up using the code i had before
moved the data to a json file
updated shit i think
removed unneccessary files
everything as it should have been ugh fuck javascript