some javascript related updates