Our javascript api(grab posts, auth)