Solves javascript error for upload file for new post page.

Adds some javascript.js and html