Moved selector attrs to the __init__ to support factory-based Flask app building