refactor all posts, import jgames js