Post.create bug fix

Js script on create page malfunctions in different environments, fixed
that