Updated server template:
1) No longer needs to extract functions from DOM.
2) No longer synchronous.