Small tweaks to make it compatible with Qt 5.0

The this pointer for QML objects was introduced in Qt 5.2, using the Canvas id instead and importing QtQuick 2.0 instead of version 2.2 allows QChart.js to work with Qt 5.0.