constantize `500` as `window.fading_duration` and reuse it through the code.