add a new post javascript prototype | edit nav