Replace String At Position Javascript Function How To Use