Added AJAX functionality to comment and idea creation