more JavaScript updates