Revert "removed unused functions"

This reverts commit 9fa54eb2ee2ecd4d32e1fad0b31dc3f0d70ce1c8.

Conflicts:
	sf-rest-api/custom.js