add js format rules