JavaScript functions mapping.