Pass PHP posts into javascript arrays

note: i kept the initial post type and didn’t make a custom one… for
simplicity sake