Help with JavaScript

Hello,
I'm completely new to JavaScript. My project requires to display path from pointA to pointB on GoogleMaps using gps coordinates.
For now all I'm trying to do is to display google maps webpage to start off.
Using an online editor I was able to do that but when put the code in the Eclipse it won't do it.