Simple HTML selector lib using string manipulation and regex