結果 : get current position javascript