refine javascript operator