check truthiness of parameter for hasElem method. update package.json. added switchactivate method