Cocos2d HTML5 - Parallax Background and Repeatedly Horizontally Generated Ground

I don’t know should I ask this here or not, but I want to create a parallax scene. There will be a sky and a ground where a player runs on. the ground will be generated repeatedly in the horizontal. How can I achieve this? I couldn’t find any tutorial or an open source game, which has a tile in it, which repeatedly generated the ground. I am using cocos2dHTML5 v2.0

Thanks in advance.

you want to implement an ever scrolling ground?

you just need to keep creating sprites ahead of the screen, and delete ground sprite behind the player