trying to fix some js