Js Find Index Of Character In String