put some common js utils