Merge pull request #29 from hoongman/master3

Validation applied on deleting groups which contain posts
Added an example js post (which needs to be changed and cleaned)