fix reference errors for JS, CSS editors #3525