Update Public/js/main.js

Added stubs for every API function