javascript arguments mapping library