How to get POST data without using PHP, using only Javascript instead?