minor javascript tweak