add js patterns init