Replace With Empty String In Javascript Method Calling