Set of common base JavaScript functions