improve code
Merge branch 'master' of github.com:PlanetWalley/postit

Conflicts:
	js/offline_post.js