var once = true;

$(document).ready(function(){
                /*   checks to see whether there is an text in textarea  */
                if($("textarea").val().match(/^\s*$/)!=null){
                                /*  If not then adds the text and style */
                                $("textarea").text("Type your story here");
                                $("textarea").addClass("defaultText");
                                /* when textarea is clicked on this removes text and style */
                                $("textarea").focus(function () { 
                                                if(once){
                                                                $(this).text("");
                                                                $("textarea").removeClass("defaultText");
                                                                once = false;
                                                }
                                });
                }
	});