update some JS stuff