check for the availabilty of chrome apis