fixes syntax error on services.js
adds post editing feauture