end of js patterns