update posts.js

add console to test codeship