Minor Javascript updates