Javascript Canvas Extension API