Be smarter about including javascript.

Instead of explicitly mentioning each asset, just include the whole directory.
Add custom error page.

This will be used by S3 on 403 and 404.