some js issues