Call JavaScript function in Notes Formula

I have the following formula language in a button, and I also need to call a JavaScript function in the same button. Is this possible? Or does anyone know how I can do a refresh and set fields via JavaScript? Not sure which would be the better solution, but I definitely need to retain the JavaScript function.

@Command([ViewRefreshFields]);

@SetField(“aa1”;“”);

@SetField(“editControl1”;“”)