Revert "Revert "remove cname from master""

This reverts commit 7eb67a2c50efcde0be36a5c8645be358b66d5c1e.
move perPage var to the inside of the project function.