added new post form for the frotend, rewrote js to jquery