Only one pgtile.js, handles being required on both server and client.