Remove or strip arguments from function calls in and with JavaScript