learning post with plain js