add post: oop in js