Hi Tarun,
I just want to let you know that you are doing simple mistake as you are applying "{return false;}" but actually you should apply "{{ return fasle ;}}". it will definitely work!!.
string functionName="Add";
string.Format("function {0}(args) {{ return false; }}", functionName);