Parse JavaScript function parameters dynamically