small JS updates