javascript scope test masking