I don't think you can draw lines with construct, like in these games, but you can do it with slightly larger objects, say, 8 pixels in width.
Now let's say you have a window that is 640px wide with these "wall" objects on the top and bottom scrolling left, that's 160 objects, which I guess are no problem for HTML5