regex check js homework