Remove unused assets
Make the $post global to avoid calls to undefined vars
Filter the data returned whatever the value is - #31