How to integrate simple polyline function with Two canvas(Sandcastle)?

Included the function for generating polyline

var polyline = polylines.add();

Sandcastle.declare(polyline); // For highlighting on mouseover in Sandcastle.

polyline.setPositions(ellipsoid.cartographicArrayToCartesianArray([

Cesium.Cartographic.fromDegrees(-120.0, 40.0),

Cesium.Cartographic.fromDegrees(-110.0, 30.0)

]));

And imported js files using

require([

‘Cesium’, ‘Widgets/Dojo/CesiumViewerWidget’

]

But error says “require not defined”

It would be great if some one could provide some insights on this topic.