some js half fixes