essential javascript detection