views.assets: Hacky fix for names with apostrophes breaking JS