a tiny base javascript library