add js rules