Fixed up some js