updated js scopes