Making JavaScript functions that should already exist...