js for dynamic adds