Some Javascript Common Tools