I don't know if it is late, but if you are working with a standalone js file, add this to the header of the file:

/// <reference path="http://api.maps.nokia.com/2.2.3/jsl.js" />
/// <reference...