Javascript - key-object collection, key-value collection, passing dynamic number of arguments, and using eval for processing requests