Use tern goto definition map when in Javascript

Signed-off-by: Daniel Francis <francis@sugarlabs.org>