View refactored for $.post(...), working now on the server-side