Add the mapping to js