Kata: GPS Navigation

The JavaScript solution of the Codewars kata