JavaScript updates