updating libraries
only run in browser