Custom 404 page - existing plugins?

Has anyone figured this out? The 404 template is handled by ruby, not by JS, which is weird.
Is there a way to make custom 404 hbs template and style it through theme?