copy shared/javascript here