Template:REST API GET sample code (javascript)