updated JS mapping