Revert "removes not found error in admin - Javascript != PHP - re-did functions in form of func_name = function()"

This reverts commit c898410981abc5a1c030bfbf917de279cebd9bdb.