Replace With Empty String In Javascript Method For Pi