move scope extraction to Style, jquery example