After a bit of testing it looks like render :js makes explicit what the .js extension implies, so I've made the change.