use a native method :D

javascript has a thing to do that for ya. also happened to notice an unused arg