Fixes bug accessing deprecated js file