Unfortunately there are quite a number of threads about the JS scope changes, so it isn’t easy to keep everyone updated.
In short, I am currently working on merging enhancements from https://github.com/sublimehq/Packages/pull/96 and making the changes discussed at https://github.com/sublimehq/Packages/issues/141#issuecomment-182826789.