add js for math