JavaScript updates

Small javascript additions