pierre minor javascript changes