updated how expand_javascript accesses frame properties