minor javascript update