using Tim gist as reference, having trouble getting main.js to recognize the payload file