Started to make sense of the code more. It seems that my problem has to do with using the files without a server.