Fixes usage of deprecated JS constant