added selector state convention for JS