change canjs api to canjs