-Set of minor javascript fixes