add js pattern collection