update to javascripting