vanilla version, no jquery
update tests