Kinetic JS func is not return object
<pre><code>function create(x,y,imagePath,imageWidth,imageHeight) {

return new Kinetic.QImage({
        x: x,
        y: y,
        image: images.Grid,
        width: imageWidth,
        height: imageHeight,
});

}


var a = create(100,100,images.Grid,96,96);
</code></pre>

<p>Why didn't this work?</p>
