add js assignment 2