Execute JS functions at server-side

Support the Javascript action block for all channels, and enable execution of these JS functions at the server-side.