Added closeNewPostForm function and bind to the close-form class click.

Doesn't work right now, not entirely sure.