Preserve point and use js2 if available.

The point is now preserved when reading or writing the buffer.
When we are in js2-mode, we use js2' parse info to see if we are
on a variable or string that points to a dependency. If so, we
suggest that for the input on amd-goto.