Update post-public-admin.js

Use `'use strict'` statement, remove a call to addClass function, simplify wrapper code.