using js blocks