Fixed console log typo
Switched post data to array and fixed w/attribute