offloading JavaScript functions to server execution.