Canvas-JS based graphic motor