fixed callback issues; added missing $files elements; removed camelCase
Revert "fixed callback issues; added missing $files elements; removed camelCase"

This reverts commit 44a55cef097cf4c47cce149964a16e40e1354cb2.
Revert "Added ref (next, prev) attributes to the pagination links"

This reverts commit cfa171f51367e8158b39b9b33237ad91a4d09243.