compact some js