js fix for error editing banner in admin. Fix #2061