Ajax page preview using ruby parser